package com.aichat.ai_chatbackend.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户反馈表
 * @TableName user_feedback
 */
@TableName(value ="user_feedback")
@Data
public class UserFeedback implements Serializable {
    /**
     * 反馈ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 会话ID
     */
    private String sessionId;

    /**
     * 消息ID
     */
    private Long messageId;

    /**
     * 评分: 1-5
     */
    private Integer rating;

    /**
     * 反馈内容
     */
    private String feedbackContent;

    /**
     * 反馈类型: satisfied, unsatisfied, suggestion, bug
     */
    private String feedbackType;

    /**
     * 创建时间
     */
    private Date createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}